<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息</title>
</head>
<body>
<h2>用户信息管理</h2>
<a href="{% url 'create' %}">添加用户</a>
<table width="800" border="1" cellpadding="10">
    <thead>
    <th>id</th>
    <th>用户名</th>
    <th>年龄</th>
    <th>创建时间</th>
    <th>操作</th>
    </thead>
    <tbody>
     {% for user in userList %}
         <tr>
            <td>{{ user.id }}</td>
            <td>{{ user.name }}</td>
            <td>{{ user.age }}</td>
            <td>{{ user.create_time }}</td>
            <td>
                <a href="{% url 'delete' user.id %}">删除</a>
            </td>
         </tr>
        {% endfor %}
    </tbody>
</table>
</body>
</html>